package cn.luckdou.system.model.country_details;

import org.apache.commons.lang.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 国家详情
 * </p>
 *
 * @author Dadou
 * @since 2017-09-06
 */
@TableName("tb_country_details")
public class CountryDetails extends Model<CountryDetails> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 首都
     */
	private String capital;
    /**
     * 首都英文
     */
	@TableField("capital_en")
	private String capitalEn;
    /**
     * 官方语言
     */
	private String language;
    /**
     * 国家面积
     */
	private String acreage;
    /**
     * 国际人口
     */
	private String population;
    /**
     * 货币
     */
	private String currency;
    /**
     * 时区
     */
	private String timezone;
    /**
     * 宗教
     */
	private String religion;
    /**
     * 安全
     */
	private Integer security;
    /**
     * 环境
     */
	private Integer ambient;
    /**
     * 战乱
     */
	private Integer war;
    /**
     * 签证
     */
	private String visa;
    /**
     * 扩展阅读
     */
	private String extend;
    /**
     * 国家外键
     */
	@TableField("country_id")
	private Long countryId;
    /**
     * 状态 1正常 0停用
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("created_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
    /**
     * 修改时间
     */
	@TableField("updated_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedTime;
    /**
     * 删除时间
     */
	@TableField("deleted_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date deletedTime;
	/**
	 * 无参构造方法
	 */
	public CountryDetails(){
	}

	public CountryDetails(String capital, String capitalEn, String language, String acreage, String population, String currency, String timezone, String religion, Integer security, Integer ambient, Integer war, String visa, String extend) {
		this.capital = capital;
		this.capitalEn = capitalEn;
		this.language = language;
		this.acreage = acreage;
		this.population = population;
		this.currency = currency;
		this.timezone = timezone;
		this.religion = religion;
		this.security = security;
		this.ambient = ambient;
		this.war = war;
		this.visa = visa;
		this.extend = extend;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCapital() {
		return capital;
	}

	public void setCapital(String capital) {
		this.capital =StringUtils.isNotBlank(capital)?capital:null;
	}

	public String getCapitalEn() {
		return capitalEn;
	}

	public void setCapitalEn(String capitalEn) {
		this.capitalEn =StringUtils.isNotBlank(capitalEn)?capitalEn:null;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language =StringUtils.isNotBlank(language)?language:null;
	}

	public String getAcreage() {
		return acreage;
	}

	public void setAcreage(String acreage) {
		this.acreage =StringUtils.isNotBlank(acreage)?acreage:null;
	}

	public String getPopulation() {
		return population;
	}

	public void setPopulation(String population) {
		this.population =StringUtils.isNotBlank(population)?population:null;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency =StringUtils.isNotBlank(currency)?currency:null;
	}

	public String getTimezone() {
		return timezone;
	}

	public void setTimezone(String timezone) {
		this.timezone =StringUtils.isNotBlank(timezone)?timezone:null;
	}

	public String getReligion() {
		return religion;
	}

	public void setReligion(String religion) {
		this.religion =StringUtils.isNotBlank(religion)?religion:null;
	}

	public Integer getSecurity() {
		return security;
	}

	public void setSecurity(Integer security) {
		this.security = security;
	}

	public Integer getAmbient() {
		return ambient;
	}

	public void setAmbient(Integer ambient) {
		this.ambient = ambient;
	}

	public Integer getWar() {
		return war;
	}

	public void setWar(Integer war) {
		this.war = war;
	}

	public String getVisa() {
		return visa;
	}

	public void setVisa(String visa) {
		this.visa =StringUtils.isNotBlank(visa)?visa:null;
	}

	public String getExtend() {
		return extend;
	}

	public void setExtend(String extend) {
		this.extend =StringUtils.isNotBlank(extend)?extend:null;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Date getDeletedTime() {
		return deletedTime;
	}

	public void setDeletedTime(Date deletedTime) {
		this.deletedTime = deletedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
